home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- from checkbox.lib.environ import get_variable
- from checkbox.properties import Bool
- from checkbox.plugin import Plugin
-
- class BootPrompt(Plugin):
- enable = Bool(default = False)
-
- def register(self, manager):
- super(BootPrompt, self).register(manager)
- self._manager.reactor.call_on('prompt-begin', self.prompt_begin)
-
-
- def prompt_begin(self, interface):
- if get_variable('UPSTART_JOB') and not (self.enable):
- self._manager.reactor.stop_all()
-
-
-
- factory = BootPrompt
-